package cn.edu.scau.cmi.ema.dao;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Fillerhazard;
import org.springframework.dao.DataAccessException;

import java.math.BigDecimal;
import java.util.Set;

public interface FillerhazardDAO extends JpaDao<Fillerhazard> {

	public Fillerhazard findFillerhazardById(Integer id) throws DataAccessException;

	public Fillerhazard findFillerhazardById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByName(String name) throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByName(String name, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByNameContaining(String name_1) throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByNameContaining(String name_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByMin(BigDecimal min) throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByMin(BigDecimal min, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByMax(BigDecimal max) throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByMax(BigDecimal max, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByDegree(String degree) throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByDegree(String degree, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByDegreeContaining(String degree_1) throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByDegreeContaining(String degree_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByDescription(String description) throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Fillerhazard findFillerhazardByPrimaryKey(Integer id) throws DataAccessException;

	public Fillerhazard findFillerhazardByPrimaryKey(Integer id, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardsByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Fillerhazard> findAllFillerhazards() throws DataAccessException;

	public Set<Fillerhazard> findAllFillerhazards(int startResult, int maxRows) throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardsByFiller(Integer fillerId, int start, int max);

	public Set<Fillerhazard> findFillerhazardsByHazard(Integer hazardId, int start, int max);

	public Set<Fillerhazard> findFillerhazardByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Fillerhazard> findFillerhazardsByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Fillerhazard findFillerhazardByPhysicalPrimaryKey(Integer fillerId, Integer hazardId, String degree)
			throws DataAccessException;

	public Fillerhazard findFillerhazardByPhysicalPrimaryKey(Integer fillerId, Integer hazardId, String degree,
			int startResult, int maxRows) throws DataAccessException;
}
